package com.wangc.tools;

import java.sql.Connection;
import java.sql.DriverManager;
import java.util.List;


public class DB_tool {

	public boolean select(String username, String password){
		
		return false;
	}
	
	public static Connection getCon(){
		Connection conn = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
			conn =  DriverManager.getConnection("jdbc:mysql://0019.freejsp.net:3306/my0190106","my0190106","wc804009");
			//conn =  DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/test","root","");
		} catch (Exception e) { e.printStackTrace(); }
		return conn;
	}
}
